FROM ehl-jdk:8
WORKDIR /app
ENV PARAMS=""
# java 配置项数据 如
ENV JAVA_OPTS="-Xmx2048M -Xms2048M"
COPY ${project.name}-${project.version}.jar application*.yml  ./
# RUN  echo "Etc/CST" > /etc/timezone
RUN echo "Asia/shanghai" > /etc/timezone
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS ${project.name}-${project.version}.jar --Dspring.config.location=file:/app/*.yml  $PARAMS"]
EXPOSE 8759
